<!DOCTYPE html>
<html>
<head>
	<title></title>
	<style type="text/css">
		p {
			padding: 0;
			margin: 0;
		}
		.marqueeBox {
			background-color: red;
		}
	</style>
</head>
<body>
	<marquee class="marqueeBox" width="100" direction="left" onMouseOver="stop()" onMouseOut="start()">
		<p>wsh3038971</p>
	</marquee>
	<button id="cahngeBtn" onclick="btnClick()">转换</button>
	<input type="" name="" id="inputBox">
	输入文本: 
	<span id="d1"></span>
	<script src="./jquery.js"></script>
	<script src="./app.js"></script>
	<script type="text/javascript">
			// var a = "D:\MyDesktop\ruby\baby\ok"
			// // var a = "E:\wsh3038971\project\auction_app\auction_app";
			// var temp = JSON.stringify(a).split(":");
			// console.log(JSON.stringify(a), 'JSON.stringify(a)')
			// console.log(temp, 'temp')
			// var temp2 = temp[0] + ":/" + temp[1];
			// var result = temp2.replace(/\\/g,"/"); 
			// console.log(result);

			// var a = "D:\MyDesktop\ruby\baby\ok";
			// var reg=/[\\\/]/g;
			// console.log(a.replace(reg,"-"));
			// console.log(a)
			// let a = "()"
			// console.log(a[a.length])
			let input = document.getElementById('inputBox')
			var div = document.getElementById('d1')
			input.oninput = function(){
				div.innerHTML = input.value;
			}

 			function btnClick() {
 				let text = input.value
 				console.log(text.replace(/\\/g, '/'))
 			}
			
	</script>
</body>
</html>